package com.holly.unit.groovy.api.exception;

import com.holly.unit.core.exception.AbstractExceptionEnum;
import com.holly.unit.core.exception.base.ServiceException;
import com.holly.unit.groovy.api.constants.GroovyConstants;

/**
 * groovy脚本执行异常
 *
 * @author holly
 * @date 2021/1/22 16:36
 */
public class GroovyException extends ServiceException {

    public GroovyException(AbstractExceptionEnum exception, String userTip) {
        super(GroovyConstants.GROOVY_MODULE_NAME, exception.getErrorCode(), userTip);
    }

    public GroovyException(AbstractExceptionEnum exception) {
        super(GroovyConstants.GROOVY_MODULE_NAME, exception);
    }

}
